import request from '@/utils/request'


export function scheduleList(data) { //分项进度-列表
    return request({
        url: '/project-management/api/subItem/page',
        method: 'post',
        data
    })
}
export function scheduleAdd(data) { //分项进度-添加
    return request({
        url: '/project-management/api/subItem/save',
        method: 'POST',
        data
    })
}
//原 put
export function scheduleEdit(data) { //分项进度-修改
    return request({
        url: '/project-management/api/subItem/put/update',
        method: 'post',
        data
    })
}
export function scheduleDetails(id) { //分项进度-单条查询
    return request({
        url: '/project-management/api/subItem/'+id,
        method: 'get',
    })
}
//原 del
export function scheduleDelete(data) { //分项进度-单条查询
    return request({
        url: '/project-management/api/subItem/del/delete',
        method: 'post',
        data
    })
}
export function scheduleExport(id) { //里程碑表-设备、设施设备树导出
    return request({
        url: '/project-management/api/subItem/export/'+id,
        responseType: 'arraybuffer',
        method: 'get',
    })
}